package com.example.dqnm.service.impl;

import com.example.dqnm.mapper.StoreDao;
import com.example.dqnm.pojo.Store;
import com.example.dqnm.pojo.StoreExample;
import com.example.dqnm.service.storeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class storeServiceImpl implements storeService {
    @Autowired
    private StoreDao storeDao;
    @Override
    public List<Store> findAllStore() {
        StoreExample storeExample = new StoreExample();
        return storeDao.selectByExample(storeExample);
    }
}
